package com.ydkj.a37e_mall.Classes.Model.Request;

import android.util.Log;

import com.ydkj.a37e_mall.Classes.Model.Base.BaseReq;
import com.ydkj.a37e_mall.Resource.Utils.Rsa;

/**
 * Created by Administrator on 2017/2/13.
 */

public class FindShopReq extends BaseReq {
    private String uuid;
    private String industry;
    private String province_id;
    private String city_id;
    private String area_id;
    private String type;
    private String product_id;
    private String keyword;
    private String lng;
    private String lat;
    private String page;
    private String page_size;
    private String secret;

    public String getIndustry() {
        return industry;
    }

    public void setIndustry(String industry) {
        this.industry = industry;
    }

    public String getProvince_id() {
        return province_id;
    }

    public void setProvince_id(String province_id) {
        this.province_id = province_id;
    }

    public String getCity_id() {
        return city_id;
    }

    public void setCity_id(String city_id) {
        this.city_id = city_id;
    }

    public String getArea_id() {
        return area_id;
    }

    public void setArea_id(String area_id) {
        this.area_id = area_id;
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getProduct_id() {
        return product_id;
    }

    public void setProduct_id(String product_id) {
        this.product_id = product_id;
    }

    public String getLng() {
        return lng;
    }

    public void setLng(String lng) {
        this.lng = lng;
    }

    public String getLat() {
        return lat;
    }

    public void setLat(String lat) {
        this.lat = lat;
    }

    public String getPage() {
        return page;
    }

    public void setPage(String page) {
        this.page = page;
    }

    public String getPage_size() {
        return page_size;
    }

    public void setPage_size(String page_size) {
        this.page_size = page_size;
    }

    public String getKeyword() {
        return keyword;
    }

    public void setKeyword(String keyword) {
        this.keyword = keyword;
    }

    public String urlString() {
        return "store/store_list";
    }


    public String getSecret() {
        String string = (uuid == "" ? "" : "uuid=" + uuid) + (uuid == "" ? "type=" + type : "&type=" + type) + (industry == "" ? "" : "&industry=" + industry) + (province_id == "" ? "" : "&province_id=" + province_id) +
                (city_id == "" ? "" : "&city_id=" + city_id) + (area_id == "" ? "" : "&area_id=" + area_id)
                + (product_id == "" ? "" : "&product_id=" + product_id) + (keyword == "" ? "" : "&keyword=" + keyword) + "&lng=" + lng + "&lat=" + lat +
                "&page=" + page + "&page_size=" + page_size;
        try {

            Rsa rsa = new Rsa();
            Log.e("ssss", "找店source==>" + string);
            secret = rsa.encryptByPublic(string);
        } catch (Exception e) {
            e.printStackTrace();
        }

        return secret;
    }


}
